SetUDDate

SoftwareShield ClientProtector COM Component > ClientProtector (SSCProtector) Reference > SetUDDate

## SetUDDate

The SetUDDate function sets one of the user defined dates stored in the license based on an index.

###### Syntax

HRESULT GetUDDate (

long Index,
long UDDateYear,
long UDDateMonth,
long UDDateDay

);

###### Parameters

Index

[IN] Numeric index (0 to 4 inclusive) corresponding the user defined date field stored in the license which you wish to set.

UDDateYear

[IN] This is a numeric value which will must contain the full-length Gregorian year corresponding to the date you wish to set in the user defined date field specified by the Index parameter. (Valid range is greater than or equal to 1899)

UDDateMonth

[IN] This is a numeric value which will must contain the Gregorian month (1 through 12 inclusive) corresponding to the date you wish to set in the user defined date field specified by the Index parameter.

UDDateDay

[IN] This is a numeric value which will must contain the Gregorian day (1 through 31 inclusive) corresponding to the date you wish to set in the user defined date field specified by the Index parameter.

###### Remarks

The SetUDDate function sets one of the user defined dates stored in the license based on the numeric value passed in the Index parameter. If Index is not within range the result is undefined (valid range is 0 to 4 inclusive).

If the values passed one or more of the date parameters is not valid (i.e.: out of valid range), the corresponding stored date is unchanged.

If the function executes successfully, the date is stored in the corresponding user defined date field and any previously stored date in that field is overwritten.

###### Return Value

As with all COM function calls they return an HRESULT. HRESULT is a data type that is a 32-bit error or warning code. Check your compilers documentation for information on interpreting the HRESULT value.

###### Function Information

Exposed By Interface: | "ISSCProtector"
Exposed In COM Server Binaries: | "SSCProt.dll" and "SSCProtD.dll"